package com.lvhx.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

@Configuration
public class ExecuterConfig {

    @Bean
    public ExecutorService threadPool(){
        ExecutorService threadPool = Executors.newFixedThreadPool(10);
        return threadPool;
    }
}
